package com.alan.netty;

import com.google.common.base.Splitter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootApplication
public class NettyTestApplication {

    public static void main(String[] args) {
        SpringApplication.run(NettyTestApplication.class, args);
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String encode1 = null;
        String encode2 = null;
        System.out.println(encode1 = encoder.encode("123456"));
        System.out.println(encode2 = encoder.encode("123456"));
        System.out.println(encoder.matches("123456",encode1));
        System.out.println(encoder.matches("123456",encode2));
    }
}
